<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../css/loginAndRegister.css">
    <script type="text/javascript" src="../layui/layui.all.js"></script>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
 	<script type="text/javascript" src="../js/jquery-2.2.3.min.js"></script> 
	<link rel="stylesheet" href="../css/layer-animate.css"/> 
</head>
<body>
<div class="layui-bg-blue" id="top" ><a href="http://localhost:8080/index.html">欢迎使用瑜伽APP</a></div>
	
	<div class="layui-tab layui-tab-brief" lay-filter="demo">
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">		
	 <div id="login">通过手机找回密码</div>
	  <div class="centerBox">
	<input type="text"  id="phone" onkeyup="phoneCheck()" value="${param.abc}"/>
	<p><span id="judge1"></span></p>
	  <input type="password"  placeholder="请输入密码" id="pwd" />
	  <button  onclick="loginByPhone()" type="button" >确定</button>
	  </div>
	</div>
</div>
</div>

</body>
<script type="text/javascript">
function loginByPhone(){
	$.ajax({
		url:"/user/changePwdByPhone",
		type:"post",
		data:{
			uphone:$("#phone").val(),
			pwd:$("#pwd").val()
		},
		success:function(data){
			alert(data);
			location.href="http://localhost:8080/index.html";
		}
		
	});
}
</script>
</html>